using Assets.Scripts.GDK;
using UnityEngine.UI;

namespace Brick
{
	public class RewardItem : gdk_base_UI
	{
		public Image iconBg;

		public Text valueText;

		public void OnData(string str, int ID)
		{
			valueText.text = "x" + str;
			OnShowICon(ID);
		}

		public void OnShowICon(int ID)
		{
			switch (ID)
			{
				case 2:
					iconBg.sprite = gdk_game_manager.loadSprite("UI/Common/common_zs");
					break;
				case 3:
					iconBg.sprite = gdk_game_manager.loadSprite("UI/Game/dj_2");
					break;
				case 4:
					iconBg.sprite = gdk_game_manager.loadSprite("UI/Game/dj_1");
					break;
				case 5:
					iconBg.sprite = gdk_game_manager.loadSprite("UI/Game/dj_5");
					break;
				case 6:
					iconBg.sprite = gdk_game_manager.loadSprite("UI/Game/dj_3");
					break;
				case 7:
					iconBg.sprite = gdk_game_manager.loadSprite("UI/Game/dj_4");
					break;
			}
			iconBg.SetNativeSize();
		}
	}
}

